//
//  IMINetConnectionManager.m
//  IMINet
//
//  Created by Travis on 09-11-23.
//  Copyright 2009 Exmart. All rights reserved.
//

#import "IMINetConnectionManager.h"


@implementation IMINetConnectionManager

- (id) init
{
	self = [super init];
	if (self != nil) {
		connections=[[NSMutableDictionary alloc] init];
	}
	return self;
}
-(void)addConnection:(IMINetConnection*)cnt{
	[connections setObject:cnt forKey:cnt.uuid];
}
-(void)removeConnection:(IMINetConnection*)cnt{
	[connections removeObjectForKey:cnt.uuid];
}
-(BOOL)allConnectionsFinished{
	return [[connections allKeys] count]==0;
}
@end
